{* $Id$ *}
{include_core file="admin/lib/header.html" title="错误日志展示"}
  <div class="page-header border-bottom clearfix">
    <h2 class="left">系统日志管理<span>在这里对日志进行管理</span></h2>
    <a href="{AnUrl('user/admin/add')}" class="btn btn-success btn-sm right"><i class="icon-add"></i>添加用户</a>
  </div>
<!--start:列表-->
  <table class="list-table">
    <caption style="margin-bottom:25px;">
      <span style="margin-bottom:5px;">按状态：
        <a href='{AnUrl("user/admin?status=1&dealer_level=$dealer_level&only_dealer=0")}' {if $status == 1} class="label label-primary" {else} class="label label-default" {/if}>正常</a>
        <a href='{AnUrl("user/admin?status=0&dealer_level=$dealer_level&only_dealer=0")}' {if $status == 0} class="label label-primary" {else} class="label label-default" {/if}>已禁用</a>
      </span><br/>
      
    </caption>
    <thead>
    <tr>
      {if $status == 1}
      <th style="width:20px;"><input type="checkbox" class="selectAll"></th>
      {/if}
      <th style="width:10px;">ID</th>
      <th style="width:450px;word-break:break-all">日志内容</th>
      <th style="width:20px;">类型</th>
      <th style="width:20px;">来源</th>
      <th style="width:30px;">添加时间</th>
    </tr></thead>
    <tbody>
      {foreach $syslog_list as $k=>$v}
        <tr id="dataList{$v.id}">
          <td>{$v.id}</td>
          <td style="width:450px;word-break:break-all" >{$v.content}</td>
          <td>{$v.type}</td>
          <td>{$v.src}</td>
          <td>{time_format($v.add_time)}</td>
        </tr>
      {foreachelse}
          <tr><td class="txtleft" colspan="6">暂无数据</td></tr>
      {/foreach}

    </tbody>
    {if $status == 1}
    <tfoot><tr><td><input type="checkbox" class="selectAll"></td><td colspan="6"><a href="{AnUrl("user/admin/delete")}" class="btn btn-danger btn-xs deleteAll">批量禁用</a></td></tr></tfoot>
    {/if}
  </table>
  <script type="text/javascript">
  
  
  </script>

  {include_core file="admin/lib/pager.html"}
<!--end:列表-->
{load_js file='zclip/jquery.zclip.min.js'}
{load_js file='zclip/ZeroClipboard.js'}
{include_core file="admin/lib/footer.html"}